"""字典中去除nan变为none"""
import pandas


def dict_nan_to_none(dict):
    nan_list = []
    for x, y in dict.items():
        if pandas.isna(y):
            nan_list.append(x)
    for i in nan_list:
        dict[i] = None
    return dict